package cn.kgc.vue.utils;

import java.util.Random;

/**
 * @author: 课工场
 * @since 2023/8/15
 */
public class SaltUtil {

    public static String getSalt(Integer length){

        char[] chars = "wertyuiosdfghjkxcvbnm,12345678".toCharArray();
        Random random = new Random();
        StringBuilder stringBuilder = new StringBuilder();
        for (Integer integer = 0; integer < length; integer++) {
            int i = random.nextInt(chars.length);
            stringBuilder.append(chars[i]);
        }
        return stringBuilder.toString();
    }

}
